//
//  StewardStipsCell.m
//  DefendHealth
//
//  Created by 吾诺瀚卓 on 17/2/22.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "StewardStipsCell.h"
#import "Header.h"

@implementation StewardStipsCell

- (void)awakeFromNib {
    // Initialization code
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        UILabel * titleLab = [ReduceCode creatLabelWithFrame:CGRectMake(10, 14, kScreenWidth-20, 13) title:@"Y管家小贴士" titleColor:UIColorFromRGB(0x050403) font:13 textAlignment:NSTextAlignmentLeft];
        titleLab.font = [UIFont fontWithName:@"Helvetica-Bold" size:13];

        [self.contentView addSubview:titleLab];
        
        CGFloat titleWidth = [ToolUtil autoWidth:@"每天起床后10分钟" width:500 height:10 num:10];
        
        UILabel * lab = [ReduceCode creatLabelWithFrame:CGRectMake(10, kMaxY(titleLab.frame)+14, titleWidth, 9) title:@"每天起床后10分钟" titleColor:UIColorFromRGB(0x969797) font:9 textAlignment:NSTextAlignmentLeft];
        
        [self.contentView addSubview:lab];
        
        UILabel * lab1 = [ReduceCode creatLabelWithFrame:CGRectMake(10+titleWidth+30, kMaxY(titleLab.frame)+14, titleWidth, 9) title:@"晚上睡前10分钟" titleColor:UIColorFromRGB(0x969797) font:9 textAlignment:NSTextAlignmentLeft];
        
        [self.contentView addSubview:lab1];
        
        UILabel * lab2 = [ReduceCode creatLabelWithFrame:CGRectMake(10, kMaxY(titleLab.frame)+14+9+10, titleWidth, 9) title:@"办公室午休10分钟" titleColor:UIColorFromRGB(0x969797) font:9 textAlignment:NSTextAlignmentLeft];
        
        [self.contentView addSubview:lab2];
        
        UILabel * lab3 = [ReduceCode creatLabelWithFrame:CGRectMake(10+titleWidth+30, kMaxY(titleLab.frame)+14+9+10, titleWidth, 9) title:@"效果更棒哦" titleColor:UIColorFromRGB(0x969797) font:9 textAlignment:NSTextAlignmentLeft];
        
        [self.contentView addSubview:lab3];
        
        
    }
    
    return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
